﻿Imports TorneosBackEnd

Public Class ListarCabina

    Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick

    End Sub

    Private Sub Form5_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    End Sub

    Private Sub lisnomcab_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lisnomcab.TextChanged

        

    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        Dim negocio As New CabinaNegocio



        Dim cabinas As Collection = negocio.listar()

        Me.DataGridView1.DataSource = cabinas
        Me.DataGridView1.EditMode = False


        Me.DataGridView1.Columns(0).HeaderText = "idCabina"
        Me.DataGridView1.Columns(1).HeaderText = "Nombre_encargado"
        Me.DataGridView1.Columns(2).HeaderText = "Direccion"



    End Sub
End Class